package com.fagejiang.springboottest.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * TODO
 *
 * @author 发哥讲Java
 * @version 1.0
 * @date 2021-03-24 14:28
 */
@Component
@ConfigurationProperties(prefix = "home")
@Data
public class HomeTown {
    private String name;
    private Integer age;
    private String email;
    private List<String> list;
}
